package com.bwda.dsrs.filecenter.api.clientappversion.user;

import com.bwda.dsrs.base.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户表
 *
 * @author youzhen
 * @date 2019年4月28日
 */
@Data
@ApiModel(description = "用户表")
public class UserForm {

	@ApiModelProperty(value = "用户ID")
	private Integer userId;

	@ApiModelProperty(value = "用户编码")
	private String userCode;

	@ApiModelProperty(value = "姓名")
	private String userName;

	@ApiModelProperty(value = "工号")
	private String empNo;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "组织ID")
	private Integer orgId;

	@ApiModelProperty(value = "手机号码")
	private String mobilePhone;

	@ApiModelProperty(value = "邮箱地址")
	private String email;

	@ApiModelProperty(value = "用户职级")
	private Integer userLevel;

	@ApiModelProperty(value = "用户角色")
	private Integer[] userRole;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "0正常1冻结2离职3锁定4注销")
	private Integer userState;

	@ApiModelProperty(value = "历史密码1")
	private String hisPwdOne;

	@ApiModelProperty(value = "历史密码2")
	private String hisPwdOtwo;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "创建人编号")
	private String createUserCode;

	@ApiModelProperty(value = "更新时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date updateTime;

	@ApiModelProperty(value = "更新人编号")
	private String updateUserCode;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "0启用 1停用")
	private Integer status;


	@ApiModelProperty(value = "true选中 ")
	private  boolean checkFlag;


}